<!doctype html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=0, width=device-width"/>
	<title>api</title>
	<link rel="stylesheet" type="text/css" href="../css/api.css" />
	<link rel="stylesheet" type="text/css" href="../css/common.css" />
	<link rel="stylesheet" type="text/css" href="../css/buyRecord.css" />
</head>

<body >
<script id="buyRecord-template" type="text/x-dot-template">
	{{if(it==''){}}
		<div style='padding-top: 40px;color: #999;text-align: center'>该用户还没有购买记录！</div>
	{{}}}
	{{ for(var i=0; i< it.length; i++) { }}
		<dd style="position: relative" class="buy-item" >
		{{if(it[i].yunjiage==10){}}
          <img src="../image/ten.png" class="ico ico-label ico-label-goods">
          {{}}}	
				<div class="item-top align-items">
					<div class="item-img" onclick="openGoodsDetail({{=it[i].id}})">
						<img src="http://wap.jqmao.cn/statics/uploads/{{=it[i].thumb}}" width="82px" height="82px">
					</div>
					<div class="item-content">
						<div class="content-txt">
							<p onclick="openGoodsDetail({{=it[i].id}})" class="title">第({{=it[i].qishu}})期{{=it[i].title}}</p>
							<div  onclick="openHeader('buyCode','{{=it[i].id}}','{{=it[i].uid}}')" style="height: 30px;line-height: 30px; font-size: 14px;">
								<p class="gray">本期参与：{{=it[i].gonumber}}人次<span class='blue'>参与详情</span></p>
							</div>
							
						</div>
					</div>
				</div>
			<div class="item-bottom">
					{{if(it[i].remark=='1'){}}
						<div class="item-bottom">
					<div class="winname" onclick="openWin('userCore','{{=it[i].q_uid}}')"><span>获奖者:</span><span class="blue nametxt">{{=it[i].q_user}}</span>&nbsp;<span class="red">{{=it[i].totalVisitors}}</span><span>人次</span></div>
					
						
					<div  class='button'>
						<span onclick="openGoodsDetail({{=it[i].id}})">购买新期</span>
					</div>
					
				</div>
					{{}else{}}
					
						<div class="w-progressBar">
						
						<p class="wrap">
							<span class="bar" style="width:{{=it[i].percent}}%;"> <i class="color"></i>
							</span>
						</p>
						<span class="txt aggregate gray">
							总需: {{=it[i].zongrenshu}}
						</span>
						
						<span class="txt right gray">
							剩余: {{=it[i].shenyurenshu}}
						</span>
					
					</div>
					<div class='button'>
						<span onclick="addCart({{=it[i].id}},'buy')">我也来买</span>
					</div>
					
				</div>
				{{}}}
				<!-- <div class="item-bottom">
					<div class="winname">获奖者：<span class="blue">{{=it[i].q_user}}</span>&nbsp;<span class="red">10</span>人次</div>
					
						
					
					<div  class='button'>
						<span>购买新期</span>
					</div>
					
				</div> -->
				
			</dd>
	{{}}}
</script>


	<div id='buyRecord'>
		<dl id='buyRecord-content'>

		</dl>
		<!-- <div id='more' style="text-align: center;height: 30px;line-height: 30px; color: #666">正在加载...</div> -->
	</div>

</body>

	<script type="text/javascript" src="../script/zepto.min.js"></script>

	<script type="text/javascript" src="../script/api.js"></script>
	
	<script src='../script/swipe.js'></script>
	<script type="text/javascript" src="../script/doT.min.js"></script>
	<script type="text/javascript" src="../script/common.js"></script>
	<script type="text/javascript" src="../script/buyRecord.js"></script>

</html>